package com.hyt.it.ogt.kq.service.gov.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 考试协议表
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("kw_exam_agreement")
@ApiModel(value="KwExamAgreement对象", description="考试协议表")
public class ExamAgreement extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试任务id")
    private String taskId;

    @NotBlank(message = "考试协议名称不能为空")
    @ApiModelProperty(value = "考试协议名称")
    private String name;

    @NotBlank(message = "类型不能为空")
    @ApiModelProperty(value = "协议类型：1：考生须知，2：欢迎语")
    private Integer type;

    @NotBlank(message = "考试协议内容不能为空")
    @ApiModelProperty(value = "考试协议内容")
    private String content;

}
